
/**
 *
 */
package com.serviceprovider.business.module.admin.address.model;

//~--- JDK imports ------------------------------------------------------------

import java.io.Serializable;

/**
 * State Modal object
 *
 * @author mrduongnv@gmail.com
 */
public class State implements Serializable {
    public static final String NO_STATE = "--";

    /**
     * Serial version id
     */
    private static final long serialVersionUID = 7399993607994299436L;

    /**
     * Holds state code.
     */
    private String code;

    /**
     * Holds state name
     */
    private String name;

    public State() {
        this.code = NO_STATE;
    }

    public State(String code) {
        this.code = code;
    }

    /**
     * Getter method for code.
     *
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * Setter method for code.
     *
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * Getter method for name.
     *
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Setter method for name.
     *
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}



